<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>2019年-2020年5月份上海入境数据可视化</title>

    <link rel="stylesheet" href="css/index.css">
    <script src="js/jquery.js"></script>
    <script>
        $(function () {
            $('.myscroll').myScroll({
                speed: 75, //数值越大，速度越慢
                rowHeight: 38 //li的高度
            });
        });

        $(document).ready(function () {
            var whei = $(window).width()
            $("html").css({ fontSize: whei / 22 });
            $(window).resize(function () {
                var whei = $(window).width();
                $("html").css({ fontSize: whei / 22 })
            });
        });
    </script>
</head>
<body>

<div class="main">
    <div class="header">
        <div class="header-left fl" id="time"></div>
        <div class="header-center fl">
            <div class="header-title">
                2019年-2020年5月份上海入境数据可视化
            </div>
            <div class="header-img"></div>
        </div>
        <div class="header-right fl"></div>
        <div class="header-bottom fl"></div>

    </div>

    <div class="center">
        <div class="center-left fl">
            <div class="left-top">
                <!--<h1 id="ceshi">数据可视化</h1>-->
                <div class="title">2019年-2020年5月相关提示</div>
                <div class="top-list">
                    <p>建议入境情况及分析</p>
                    <ul>
                        <li>入境量第一：国外</li>
                        <li>入境量第二：台湾</li>
                        <li>入境量第三：香港</li>
                        <li>入境量第四：澳门</li>
                        <li>若您来自国外入境：需提前准备，有些困难</li>
                        <li>若您来自港澳台：不太困难，机票相对好订</li>

                    </ul>
                </div>

            </div>
            <div class="left-cen">
                <div class="title">2019年-2020年5月各方入境数据总结</div>
                <ul class="company">
                    <li>总入境量：9674548/人次</li>
                    <li>香港入境量：562735/人次</li>
                    <li>外国入境量：6386979/人次</li>
                    <li>澳门入境量：33179/人次</li>
                    <li>台湾入境量：837763/人次</li>
                    <li>提示：在2019年10月份，各地入境量呈滑坡趋势</li>
                </ul>

            </div>

        </div>
        <div class="center-cen fl">
            <div class="cen-top">
                <div class="top-bottom">
                    <div id="chart1" class="allnav"></div>
                    
                </div>
            </div>
            <div class="cen-bottom">
                <div class="title">无</div>
                <div class="bottom-b">
                    <div id="chart4" class="allnav">
                        
                    </div>
                    
                </div>

            </div>
        </div>
        <div class="center-right fr">
            <div class="right-top">
                <div class="title">数据可视化测试</div>

                <div class="echart wenzi">
                    <div class="gun">
                        <span>月份</span>
                        <span>2019总入境量</span>
                        <span>2020年1-5月份</span>
                    </div>
                    <div id="FontScroll" class="myscroll">
                        <ul>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>01</b>
                                    </span>
                                    <span>609478</span>
                                    <span>489819</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>02</b>
                                    </span>
                                    <span>551743</span>
                                    <span>82498</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>03</b>
                                    </span>
                                    <span>825082</span>
                                    <span>66029</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>04</b>
                                    </span>
                                    <span>826734</span>
                                    <span>17047</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>05</b>
                                    </span>
                                    <span>777193</span>
                                    <span>46863</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>06</b>
                                    </span>
                                    <span>748954</span>
                                    <span>无数据</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>07</b>
                                    </span>
                                    <span>706545</span>
                                    <span>无数据</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>08</b>
                                    </span>
                                    <span>710339</span>
                                    <span>无数据</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>09</b>
                                    </span>
                                    <span>771217</span>
                                    <span>无数据</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>10</b>
                                    </span>
                                    <span>870185</span>
                                    <span>无数据</span>
                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>11</b>
                                    </span>
                                    <span>844846</span>
                                    <span>无数据</span>

                                </div>
                            </li>
                            <li>
                                <div class="fontInner clearfix">
                                    <span>
                                        <b>12</b>
                                    </span>
                                    <span>729976</span>
                                    <span>无数据</span>

                                </div>
                            </li>

                        </ul>
                    </div>
                </div>

            </div>
            <div class="right-cen">
                <div class="title">无</div>
                <div id="chart2" class="allnav">
                </div>
            </div>
            <div class="right-bottom">
                <div class="title">无</div>
                <div class="chat">
                    <div id="chart5" class="allnav"></div>
                </div>

            </div>
        </div>
    </div>


</div>


<script src="js/jquery.min.js"></script>
<script src="js/echarts.min.js"></script>
<script src="js/wodry.min.js"></script>
<script src="js/fontscroll.js"></script>
<script src="js/echarts.js"></script>

<script>
    /*$('#ceshi').wodry({

        animation: 'rotateX',

        delay: 1000,

        animationDuration: 800

    });*/
    /*window.onload = function () {
        setInterval(function () {
            var hs=document.getElementById("ceshi");
            var hstyle=hs.style.transform;
            if(hstyle=='rotateX(-360deg)'){
                //console.log(1)
                hs.style.transform='rotateX(0deg)';
                hs.style.transform='transform 500ms cubic-bezier(0.55, 0.18, 0.92, 0.46) 0s;'
            }else {
                hs.style.transform='rotateX(-360deg)';
                hs.style.transition="all 2s";
            }
        }, 5000);
    };*/

    //顶部时间
    function getTime(){
        var myDate = new Date();
        var myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
        var myMonth = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
        var myToday = myDate.getDate(); //获取当前日(1-31)
        var myDay = myDate.getDay(); //获取当前星期X(0-6,0代表星期天)
        var myHour = myDate.getHours(); //获取当前小时数(0-23)
        var myMinute = myDate.getMinutes(); //获取当前分钟数(0-59)
        var mySecond = myDate.getSeconds(); //获取当前秒数(0-59)
        var week = ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
        var nowTime;

        nowTime = myYear+'-'+fillZero(myMonth)+'-'+fillZero(myToday)+'&nbsp;&nbsp;'+fillZero(myHour)+':'+fillZero(myMinute)+':'+fillZero(mySecond)+'&nbsp;&nbsp;'+week[myDay]+'&nbsp;&nbsp;';
        //console.log(nowTime);
        $('#time').html(nowTime);
    };
    function fillZero(str){
        var realNum;
        if(str<10){
            realNum	= '0'+str;
        }else{
            realNum	= str;
        }
        return realNum;
    }
    setInterval(getTime,1000);

</script>

</body>
</html>